//
// CPSFaceLookAt.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

import org.ryzom.nel.misc.IStream;

public class CPSFaceLookAt {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public CPSFaceLookAt(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(CPSFaceLookAt obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CPSFaceLookAt(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public CPSFaceLookAt(SWIGTYPE_p_CSmartPtrT_NL3D__ITexture_t tex) {
    this(nel3dJNI.new_CPSFaceLookAt__SWIG_0(SWIGTYPE_p_CSmartPtrT_NL3D__ITexture_t.getCPtr(tex)), true);
  }

  public CPSFaceLookAt() {
    this(nel3dJNI.new_CPSFaceLookAt__SWIG_1(), true);
  }

  public void serial(IStream f) {
    nel3dJNI.CPSFaceLookAt_serial(swigCPtr, this, IStream.getCPtr(f), f);
  }

  public void activateMotionBlur(float coeff, float threshold) {
    nel3dJNI.CPSFaceLookAt_activateMotionBlur__SWIG_0(swigCPtr, this, coeff, threshold);
  }

  public void activateMotionBlur(float coeff) {
    nel3dJNI.CPSFaceLookAt_activateMotionBlur__SWIG_1(swigCPtr, this, coeff);
  }

  public void activateMotionBlur() {
    nel3dJNI.CPSFaceLookAt_activateMotionBlur__SWIG_2(swigCPtr, this);
  }

  public void setMotionBlurCoeff(float coeff) {
    nel3dJNI.CPSFaceLookAt_setMotionBlurCoeff(swigCPtr, this, coeff);
  }

  public void setMotionBlurThreshold(float threshold) {
    nel3dJNI.CPSFaceLookAt_setMotionBlurThreshold(swigCPtr, this, threshold);
  }

  public float getMotionBlurCoeff() {
    return nel3dJNI.CPSFaceLookAt_getMotionBlurCoeff(swigCPtr, this);
  }

  public float getMotionBlurThreshold() {
    return nel3dJNI.CPSFaceLookAt_getMotionBlurThreshold(swigCPtr, this);
  }

  public void setIndependantSizes(boolean enable) {
    nel3dJNI.CPSFaceLookAt_setIndependantSizes__SWIG_0(swigCPtr, this, enable);
  }

  public void setIndependantSizes() {
    nel3dJNI.CPSFaceLookAt_setIndependantSizes__SWIG_1(swigCPtr, this);
  }

  public boolean hasIndependantSizes() {
    return nel3dJNI.CPSFaceLookAt_hasIndependantSizes(swigCPtr, this);
  }

  public CPSSizedParticle getSecondSize() {
    return new CPSSizedParticle(nel3dJNI.CPSFaceLookAt_getSecondSize__SWIG_0(swigCPtr, this), false);
  }

  public boolean hasLightableFaces() {
    return nel3dJNI.CPSFaceLookAt_hasLightableFaces(swigCPtr, this);
  }

  public void setAlignOnMotion(boolean align) {
    nel3dJNI.CPSFaceLookAt_setAlignOnMotion(swigCPtr, this, align);
  }

  public boolean getAlignOnMotion() {
    return nel3dJNI.CPSFaceLookAt_getAlignOnMotion(swigCPtr, this);
  }

  public void setAlignOnZAxis(boolean align) {
    nel3dJNI.CPSFaceLookAt_setAlignOnZAxis(swigCPtr, this, align);
  }

  public boolean getAlignOnZAxis() {
    return nel3dJNI.CPSFaceLookAt_getAlignOnZAxis(swigCPtr, this);
  }

}
